package com.yunji.product.params;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.product.params
 * @Title: ProductUnitParam
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-13 18:01:21      V1.0        HuaAo       新建类
 */

public class UnitParam {

    @ApiModelProperty("单位ID")
    private Long unitId;

    @ApiModelProperty("单位名称")
    @Length(message = "单位名称不能超过{max}个字符", max = 10)
    private String unitName;

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }
}